/**
 * @method 公共类型
 */
export interface Conmmon {
  page: number;
  page_size: number;
}
/**
 * @method 获取资产打包列表
 */
export interface GetList extends Conmmon {
  key?: string;
  status?: string;
}

/**
 * @method 资产打包新增
 */
export interface CreatType {
  name: string; //资产包名称
  shared: number | null; //是都共享
  owner_code: string[]; //资产所属组织
  resource_id: number[]; //资产ID列表
  from: string; //资产包来源
  start_time: string; //开始时间
  end_time: string; //结束时间
  business: string; //资产应用行业
  update_frequency: string; //更新频率
  scene_description: string; //场景描述
  address?: string; //资产包注册地址
  time: string[];
  id?: number;
}
/**
 * @method 资产打包详情
 */
export interface DetailsType {
  id: number;
}
/**
 * @method 资产打包编辑更新
 */
export interface EditType {
  address?: string;
  business: string;
  end_time: string;
  from: string;
  id: number;
  name: string;
  // owner_code: Array<string>;
  resource_id: Array<number>;
  scene_description: string; //场景描述
  shared: number | null;
  start_time: string;
  update_frequency: string;
}
/**
 * @method 资产打包查看
 */
export interface Check {
  code: string;
  id: number;
  version: number;
}
/**
 * @method 资产打包历史版本查看
 */
export interface BanbenType extends Conmmon {
  code: string;
}
/**
 * @method 查看关联
 */
export interface GuanxiType {
  package_id: string;
}
